import md5 from 'js-md5';
let Base64 = require('js-base64').Base64;
var strContent;
export var state = {    
    getStr: function () {        
        var str = Math.random().toString(36).substr(2);        
        strContent = str
        return str
    },
    getSignature: function () {
        const TOKEN = 'JIAYI';
        strContent = strContent + TOKEN;
        var md = md5(strContent);
        var signature = Base64.encode(md)        
        return signature
    }
}
export default {
    state
}